package cn.buyclss.backend.entity.po.shop;

import cn.buyclss.backend.entity.dto.CustomerDTO;
import cn.buyclss.backend.entity.dto.OrderStatusDTO;
import cn.buyclss.backend.entity.dto.ShopDTO;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author: Cecurio
 * @create: 2019-03-21 22:35
 **/
public class OrderPO {
    /**
     * 自增编号
     */
    private Integer orderId;

    /**
     * 购买者编号
     */
    private CustomerDTO customer;

    /**
     * 商家编号 用户对商家进行评分，订单和商家是1-1的关系
     */
    private ShopDTO shop;

    /**
     * 买家评分 评分类别为1-5，其中5表示最好。
     */
    private Integer mark;

    /**
     * 是否好评 mark大于等于4为好评，good_mark字段为1；否则为0 .
     */
    private Integer goodMark;

    /**
     * 买家评语 对订单的评语
     */
    private String evaluationWord;

    /**
     * 是否已经评价。1：已经评价，0：未评价
     */
    private Integer marked;

    /**
     * 订单状态 待付款 待发货 待收货 待评价
     */
    private OrderStatusDTO orderStatus;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public CustomerDTO getCustomer() {
        return customer;
    }

    public void setCustomer(CustomerDTO customer) {
        this.customer = customer;
    }

    public ShopDTO getShop() {
        return shop;
    }

    public void setShop(ShopDTO shop) {
        this.shop = shop;
    }

    public Integer getMark() {
        return mark;
    }

    public void setMark(Integer mark) {
        this.mark = mark;
    }

    public Integer getGoodMark() {
        return goodMark;
    }

    public void setGoodMark(Integer goodMark) {
        this.goodMark = goodMark;
    }

    public String getEvaluationWord() {
        return evaluationWord;
    }

    public void setEvaluationWord(String evaluationWord) {
        this.evaluationWord = evaluationWord;
    }

    public Integer getMarked() {
        return marked;
    }

    public void setMarked(Integer marked) {
        this.marked = marked;
    }

    public OrderStatusDTO getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(OrderStatusDTO orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
}
